/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.umlviewer.view;

import org.umlviewer.model.diagram_class.Clase;
import org.umlviewer.model.diagram_class.DiagramClass;
import org.umlviewer.model.Constants;
import org.umlviewer.model.UmlDiagram;
import org.umlviewer.model.DrawElement;
import org.umlviewer.model.Relationship;
import org.umlviewer.model.DiagramElement;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;
import org.umlviewer.model.usecase_diagram.Actor;
import org.umlviewer.model.usecase_diagram.Boundary;
import org.umlviewer.model.usecase_diagram.UseCase;
import org.umlviewer.model.sequence_diagram.LifeLine;
import org.umlviewer.xmiparser.TestXML;
import org.umlviewer.xmiparser.XmiDocument;
import org.umlviewer.model.layout.RectangularPatternLayout;
import org.umlviewer.model.sequence_diagram.Message;
import org.umlviewer.paint.UMLDiagramViewer;
import proyecto.TestDiagram;
import org.umlviewer.xmiparser.UnsupportedXmiVersion;
import org.umlviewer.xmiparser.XmiParseError;
import org.umlviewer.xmiexporter.XmiExporter;
/**
 *
 * @author Rafa
 */
public class NewJFrame extends javax.swing.JFrame{

    UmlDiagram cd;
    TestXML xml;
    DiagramElement relDst=null, cloningElement = null;
    DiagramElement movingElement = null;
    Relationship rselected = null;
    Clase caux;
    UseCase useaux;
    LifeLine lf1, lf2;
    private JPopupMenu jpmActions;
    private JMenuItem jmiBlank,jmiProperties, jmiDelete,
            jmiBack, jmiFront, jmiCopy;
    //filtro de extension para el filechoose
    private FileFilter filter;
    private JFileChooser jfcFile;
    private JToolBar jtClass;
    private JButton btnClass;
    //accion que se realiza actualmente
    private int actualAction = Constants.NOACTION;     
    //si se esta creando una arista
    private boolean printingRel = false;
    private int relType = Relationship.ASSOCIATION;
    //pintan la linea que se muestra al crear la una relacion
    private int pix, piy, pfx, pfy;
    private DrawElement selectedElement = null;
    RectangularPatternLayout layout;
    //log
    private static final Logger logger =  Logger.getLogger(NewJFrame.class.getName());
    TestDiagram testdg;
     
    public NewJFrame() {
        initComponents();
        umlDiagramViewer1.setPrintGrid(false);
        umlDiagramViewer1.setAdjustGrid(false);
        jmiViewGrid.setSelected(false);
        jmiAdjustGrid.setSelected(false);
        jtClass = new JToolBar(JToolBar.HORIZONTAL);
        btnClass = new JButton("Clase");
        jtClass.add(btnClass);
        jToolBar1 = jtClass;
        
        layout = new RectangularPatternLayout();
        filter = new FileNameExtensionFilter("XML (xmi, xml)", "xml","xmi");
        
        pix = piy = pfx = pfy =0;
        
        jfcFile = new JFileChooser();
        jfcFile.setFileFilter(filter);
        jpmActions = new JPopupMenu();
        jmiBlank = new JMenuItem("---");
        jmiProperties = new JMenuItem("Propiedades");
        jmiDelete = new JMenuItem("Eliminar");
        jmiBack = new JMenuItem("Enviar atras");
        jmiBack.setIcon(new ImageIcon(getClass().getResource("/org/umlviewer/view/images/ToBack.gif")));
        jmiFront = new JMenuItem("Traer al frente");
        jmiFront.setIcon(new ImageIcon(getClass().getResource("/org/umlviewer/view/images/ToFront.gif")));
        jmiCopy = new JMenuItem("Copiar");
        jpmActions.insert(jmiBlank, 0);
        jpmActions.insert(jmiProperties, 1);        
        jpmActions.insert(jmiDelete, 2);
        jpmActions.add(jmiFront);
        jpmActions.add(jmiBack);
        jpmActions.add(jmiCopy);        
        cd = new DiagramClass();                        
         
        umlDiagramViewer1.setPreferredSize(new Dimension(10000,10000));                
        umlDiagramViewer1.setDiagram(cd);                

        jmiViewGrid.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jSlider1 = new javax.swing.JSlider();
        lblObjectDsc = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        umlDiagramViewer1 = new org.umlviewer.paint.UMLDiagramViewer();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jmiViewGrid = new javax.swing.JCheckBoxMenuItem();
        jmiAdjustGrid = new javax.swing.JCheckBoxMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Test Component");

        jToolBar1.setRollover(true);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/Class.gif"))); // NOI18N
        jButton1.setFocusable(false);
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jToolBar1.add(jButton1);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/Actor.gif"))); // NOI18N
        jButton2.setFocusable(false);
        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        jToolBar1.add(jButton2);

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/UseCase.gif"))); // NOI18N
        jButton3.setFocusable(false);
        jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        jToolBar1.add(jButton3);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/Link.gif"))); // NOI18N
        jButton4.setFocusable(false);
        jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        jToolBar1.add(jButton4);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/Generalization.gif"))); // NOI18N
        jButton5.setFocusable(false);
        jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });
        jToolBar1.add(jButton5);

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/umlviewer/view/images/Include.gif"))); // NOI18N
        jButton6.setFocusable(false);
        jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jButton6);

        jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jSlider1StateChanged(evt);
            }
        });

        umlDiagramViewer1.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout umlDiagramViewer1Layout = new javax.swing.GroupLayout(umlDiagramViewer1);
        umlDiagramViewer1.setLayout(umlDiagramViewer1Layout);
        umlDiagramViewer1Layout.setHorizontalGroup(
            umlDiagramViewer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 692, Short.MAX_VALUE)
        );
        umlDiagramViewer1Layout.setVerticalGroup(
            umlDiagramViewer1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );

        jScrollPane1.setViewportView(umlDiagramViewer1);

        jTabbedPane1.addTab("Nuevo", jScrollPane1);

        jMenu1.setText("Archivo");

        jMenuItem1.setText("Abrir");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuItem5.setText("Guardar");
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem5);

        jMenuItem2.setText("Salir");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Editar");
        jMenu2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu2ActionPerformed(evt);
            }
        });

        jMenuItem3.setText("Pegar");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem3);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Ver");

        jmiViewGrid.setSelected(true);
        jmiViewGrid.setText("Mostrar Grilla");
        jmiViewGrid.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jmiViewGridStateChanged(evt);
            }
        });
        jmiViewGrid.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiViewGridActionPerformed(evt);
            }
        });
        jMenu3.add(jmiViewGrid);

        jmiAdjustGrid.setSelected(true);
        jmiAdjustGrid.setText("Alinear a Cuadricula");
        jmiAdjustGrid.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jmiAdjustGridStateChanged(evt);
            }
        });
        jmiAdjustGrid.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiAdjustGridActionPerformed(evt);
            }
        });
        jMenu3.add(jmiAdjustGrid);

        jMenuBar1.add(jMenu3);

        jMenu4.setText("Ayuda");

        jMenuItem4.setText("Acerca de");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem4);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jToolBar1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTabbedPane1)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(lblObjectDsc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lblObjectDsc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmiAdjustGridActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiAdjustGridActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiAdjustGridActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        int selection =  jfcFile.showOpenDialog(this);
        String error= "";
        if(selection == JFileChooser.APPROVE_OPTION)
        {                                    
            try {
                XmiDocument xmi = new XmiDocument();            
                xmi.setFilepath(jfcFile.getSelectedFile().getPath());            
                cd = xmi.getUmlDiagram();
                umlDiagramViewer1.setDiagram(cd);                
                testdg = new TestDiagram(cd);
            } catch (XmiParseError ex) {
                error = ex.getLocalizedMessage();                
            } catch (IOException ex) {
                error = ex.getLocalizedMessage();
                logger.log(Level.SEVERE, null, ex);
            } catch (UnsupportedXmiVersion ex) {
                error = ex.getLocalizedMessage();                
            }            
            
            //se muestra el error
            if(!error.equals(""))
                JOptionPane.showMessageDialog(this, error, "Error",JOptionPane.ERROR_MESSAGE);
            
            //MANEJAR VARIAS PESTANIAS
            /*UmlDiagram umldg = xmi.getUmlDiagram();
            JScrollPane jp = new JScrollPane();
            DiagramPainter dgpt = new DiagramPainter();
            dgpt.setDiagram(umldg);
            jp.setViewportView(dgpt);
            jTabbedPane1.addTab("Nuevo", jp);*/
            repaint();       
        }
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        
        umlDiagramViewer1.setMouseAction(Constants.ADDCLASS);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        umlDiagramViewer1.setMouseAction(Constants.ADDACTOR);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        umlDiagramViewer1.setMouseAction(Constants.ADDUSECASE);
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        umlDiagramViewer1.setMouseAction(Constants.ADDASSOCIATION);
        umlDiagramViewer1.setRelationshipType(Relationship.ASSOCIATION);
        umlDiagramViewer1.setPrintRelation(true);
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        umlDiagramViewer1.setMouseAction(Constants.ADDASSOCIATION);
        umlDiagramViewer1.setRelationshipType(Relationship.GENERALIZATION);
        umlDiagramViewer1.setPrintRelation(true);
    }//GEN-LAST:event_jButton5ActionPerformed

    double x, y;
    int movX, movY;
    
    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        DiagramElement copiedElement = umlDiagramViewer1.getCloneableElement();
        if(copiedElement !=null){
            DiagramElement paste = (DiagramElement)copiedElement.clone();
            paste.setPosX(paste.getPosX()+20);
            paste.setPosY(paste.getPosY()+20);
            umlDiagramViewer1.getDiagram().addElement(paste);      
            umlDiagramViewer1.repaint();
        }
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSlider1StateChanged
        double scale = (double)jSlider1.getValue()/50;
        umlDiagramViewer1.setScale(scale);
        repaint();
    }//GEN-LAST:event_jSlider1StateChanged

    private void jmiViewGridActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiViewGridActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiViewGridActionPerformed

    private void jmiViewGridStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jmiViewGridStateChanged
        umlDiagramViewer1.setPrintGrid(jmiViewGrid.isSelected());
        umlDiagramViewer1.repaint();
    }//GEN-LAST:event_jmiViewGridStateChanged

    private void jmiAdjustGridStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jmiAdjustGridStateChanged
        umlDiagramViewer1.setAdjustGrid(jmiAdjustGrid.isSelected());
        umlDiagramViewer1.repaint();
    }//GEN-LAST:event_jmiAdjustGridStateChanged

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
            testdg.showRelations();
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        int selec = jfcFile.showSaveDialog(this);
        if(selec == JFileChooser.APPROVE_OPTION){
            try{
                XmiExporter.exportFile(cd, jfcFile.getSelectedFile().getPath());
            }catch(IOException e){
                logger.log(Level.SEVERE, null, e);
                JOptionPane.showMessageDialog(this, "Error - "+e.getLocalizedMessage());
            }
        }
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        System.exit(0);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenu2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu2ActionPerformed
    
    }//GEN-LAST:event_jMenu2ActionPerformed
            
    private void printSelectd(DrawElement e)
    {    
        if(e!=null){
            if(e instanceof DiagramElement){
                DiagramElement de = (DiagramElement)e;
                lblObjectDsc.setText(""+de.getName()+" [ "+(de.getPosX()+de.getWidth()/2)+","+(de.getPosY()+de.getHeight()/2)+"] W:"+de.getWidth()+", H:"+de.getHeight());
            }
        }else
            lblObjectDsc.setText("");
    }
    
  
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSlider jSlider1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JCheckBoxMenuItem jmiAdjustGrid;
    private javax.swing.JCheckBoxMenuItem jmiViewGrid;
    private javax.swing.JLabel lblObjectDsc;
    private org.umlviewer.paint.UMLDiagramViewer umlDiagramViewer1;
    // End of variables declaration//GEN-END:variables
    
}
